<?php

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <meta name="generator" content=
    "HTML Tidy for Windows (vers 14 February 2006), see www.w3.org">
    <title></title>
  </head>
  <body>
    <div class="buttons">
      <?php 
      echo form_button(array('id' => 'button-addnew', 'content' => 'Tambah Baru', 'onClick' => "location.href='".site_url()."anggota/add'" ));
      echo form_button(array('id' => 'button-view', 'content' => 'Lihat', 'onClick' => "editAction('".site_url()."anggota/view')" ));
      echo form_button(array('id' => 'button-edit', 'content' => 'Ubah', 'onClick' => "editAction('".site_url()."anggota/edit')" ));
      echo form_button(array('id' => 'button-delete', 'content' => 'Hapus', 'onClick' => "deleteAction('".site_url()."anggota/delete')" ));
      ?>
    </div>
    <table cellpadding="0" cellspacing="0" border="0" class="display" id=
    "display_table">
      <thead>
        <tr>
          <th>
            ID Anggota
          </th>
          <th>
            Nama
          </th>
          <th>
            Alaamt
          </th>
          <th>
            Pekerjaan
          </th>
          <th>
            Telepon
          </th>
          <th>
            Cek
          </th>
        </tr>
      </thead>
      <tbody>
        <?php
        if($anggota_data)
        {
                $i = 0;
                foreach ($anggota_data as $row)
                {
                        echo '<tr>';
                        echo '<td>'.$row->id_anggota.'</td>';
                        echo '<td>'.$row->nama_lengkap.'</td>';
                        echo '<td>'.$row->alamat.'</td>';
                        echo '<td>'.$row->pekerjaan.'</td>';
                        echo '<td>'.$row->telpon_1.'</td>';
                        echo '<td>'.form_hidden($i, $row->id).form_radio('selected_data', $i).'</td>';
                        echo '</tr>';
                        $i++;
                }
        }
        ?>
      </tbody>
      <tfoot>
        <tr>
          <th></th>
          <th></th>
          <th></th>
          <th>
            Jumlah Total
          </th>
          <th>
            <?php
            echo $jum_anggota->jumlah;                              
            ?>
          </th>
        </tr>
      </tfoot>
      <tfoot>
        <tr>
          <th>
            ID Anggota
          </th>
          <th>
            Nama
          </th>
          <th>
            Alamat
          </th>
          <th>
            Pekerjaan
          </th>
          <th>
            Telepon
          </th>
          <th>
            Cek
          </th>
        </tr>
      </tfoot>
    </table>
  </body>
</html>
